![]() |
FontScript |
||||
Header: | Script.h | Carbon status: | Supported | |
Returns the script code for the current script (usually the font script).
SInt16 FontScript ();
A script code. All recognized script codes and their defined constants are listed in 0).
If the font of the active graphics port is Roman and the font force flag is TRUE, the script code returned is that of the system script and the script-forced result flag is set to TRUE. If the font of the active graphics port is non-Roman, the state of the font force flag is ignored.
If the script system corresponding to the font of the active graphics port is not installed and enabled, the script code returned is that of the system script and the script-defaulted result flag is set to TRUE.
The information about the script code is subject to two control flags—the font force flag and the international resources selection flag. You can test and set these flags with the GetScriptManagerVariable and SetScriptManagerVariable selectors smFontForce and smIntlForce.
The function starts by initializing two result flags, the script-forced result flag and the script-defaulted result flag, to FALSE. These flags are Script Manager variables, accessed through the GetScriptManagerVariable function selectors smForced and smDefault.
FontScript may move memory; your application should not call this function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)